package com.sporadic.backstage.service.serviceImpl;

import com.sporadic.backstage.entity.OrderDetails;
import com.sporadic.backstage.mapper.OrderDetailsMapper;
import com.sporadic.backstage.service.OrderDetailsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class OrderDetailsServiceImpl implements OrderDetailsService {


    @Autowired
    private OrderDetailsMapper orderdetailsMapper;

    /**
     * 查询店铺进七天销售前三名的菜品
     * @param merchantId 店铺编号
     * @return 菜品名集合
     */
    @Override
    public List<OrderDetails> selTop3Details(Integer merchantId) {
        return orderdetailsMapper.selTop3Details(merchantId);
    }


}
